Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Log message will be raw (no traceId or any other metadata which comming with logentries lib), if AndroidLogger.getInstance().setSendRawLogMessage(false) was set. #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

insearching
Copy link

Can you please accept this changes in order to send raw log messages. without any metadata

…ng with logentries lib), if AndroidLogger.getInstance().setSendRawLogMessage(false) was set.
@@ -342,8 +342,11 @@ public void run() {
}

if (message != null) {
this.leClient.write(Utils.formatMessage(message.replace("\n", LINE_SEP_REPLACER),
logHostName, useHttpPost));
if(sendRawLogMessage){
Copy link

@rwtaylorjr rwtaylorjr Feb 5, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless i'm missing something, the variable name seems to contradict the intent. If sendRawLogMessage is true, the raw log message along with other information (TraceID, DeviceID, Timestamp, etc...) will be written to the output. Where as if sendRawLogMessage is false, it just sends the message without any additional meta-data.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants